package chapter04;

public class Test03_interface {
    public static void main(String[] args) {
        Dog1 d = new Dog1();
        d.info();
        d.eat();
        d.shout();
        d.black();
    }
}
class Dog1 extends Action implements Animal3{
    @Override
    public void eat() {
        System.out.println("爱吃骨头");
    }
    @Override
    public void shout() {
        System.out.println("汪汪");
    }
    @Override
    public void info() {
        System.out.println(Animal3.NAME);
        System.out.println(Animal3.getId());
    }
    @Override
    public void black() {
        System.out.println("黑色");
    }
}
